﻿<UserControl 
    x:Class="EString.EditorExtensions.PinWin"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:EString.EditorExtensions"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="256"
    d:DesignWidth="220" MinWidth="384" MinHeight="256">

    <Border>

        <Border Margin="0,42,47,0" BorderThickness="0.5" Background="#CC131313" BorderBrush="#FF4D4D4D" CornerRadius="2">

            <Grid>
                <ContentPresenter x:Name="cpMain" Margin="4" />
                <Rectangle HorizontalAlignment="Center" Height="20" VerticalAlignment="Top" Width="20" Margin="0,-10,0,0" Opacity="0.42" Visibility="Collapsed">
                    <Rectangle.Fill>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="#FF191F34"/>
                            <GradientStop Color="#FF0E277D" Offset="1"/>
                        </LinearGradientBrush>
                    </Rectangle.Fill>
                </Rectangle>
                <Rectangle HorizontalAlignment="Center" Height="20" VerticalAlignment="Bottom" Width="20" Margin="0,-10" Opacity="0.42" Visibility="Collapsed">
                    <Rectangle.Fill>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="#FF191F34"/>
                            <GradientStop Color="#FF0E277D" Offset="1"/>
                        </LinearGradientBrush>
                    </Rectangle.Fill>
                </Rectangle>
                <Rectangle HorizontalAlignment="Left" Height="20" VerticalAlignment="Center" Width="20" Margin="-10,0,0,0" Opacity="0.42" Visibility="Collapsed">
                    <Rectangle.Fill>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="#FF191F34"/>
                            <GradientStop Color="#FF0E277D" Offset="1"/>
                        </LinearGradientBrush>
                    </Rectangle.Fill>
                </Rectangle>
                <Rectangle HorizontalAlignment="Right" Height="20" VerticalAlignment="Center" Width="20" Margin="0,0,-10,0" Opacity="0.42" Visibility="Collapsed">
                    <Rectangle.Fill>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="#FF191F34"/>
                            <GradientStop Color="#FF0E277D" Offset="1"/>
                        </LinearGradientBrush>
                    </Rectangle.Fill>
                </Rectangle>
                <Button x:Name="btnClose" Content="X" HorizontalAlignment="Right" VerticalAlignment="Top" Width="40" Height="40" FontSize="9" Margin="0,-13,-13,0" Background="#FF131313" BorderBrush="#FF252525" BorderThickness="1"/>
            </Grid>
        </Border>
    </Border>
</UserControl>

